package admin

import (
	database "hft/Database"
)

type CommonActivity struct {
	database.Base
	Code             int    `json:"code" gorm:"uniqueIndex"`
	Cover            string `json:"cover" gorm:"type:text"`
	Cont             string `json:"cont" gorm:"type:text"`
	ButtonName       string `json:"button_name"`        //按钮名称
	ButtonColor      string `json:"button_color"`       //按钮颜色
	ButtonLogo       string `json:"button_logo"`        //按钮小图标
	ButtonBottomName string `json:"button_bottom_name"` //按钮底部字体
	OutSizeCover     string `json:"out_size_cover"`     //外部海报
	Title            string `json:"title"`
	SuccessButton    string `json:"success_button"` //成功按钮
}

func (CommonActivity) TableName() string {
	return database.TableNameFormat("common_activity")
}
